home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / ansi / signal.h < prev    next >
C/C++ Source or Header  |  1993-01-07  |  700b  |  33 lines

  1. #ifndef _ANSI_SIGNAL_H
  2. #define _ANSI_SIGNAL_H
  3.  
  4. #ifndef __STRICT_BSD__
  5. typedef char sig_atomic_t;
  6. #define SIG_ERR        (void (*)())-1
  7. #ifdef __STDC__
  8. extern int raise(int sig);
  9. #else    /* !__STDC__ */
  10. extern int raise();
  11. #endif     /* !__STDC__ */
  12. #endif    /* !__STRICT_BSD__ */
  13.  
  14. #if (defined(__STRICT_ANSI__) && !defined(_POSIX_SOURCE))
  15. #define SIG_DFL        (void (*)())0
  16. #define SIG_IGN        (void (*)())1
  17.  
  18. #define SIGINT        2
  19. #define SIGILL        4
  20. #define SIGABRT        6
  21. #define SIGFPE        8
  22. #define SIGSEGV        11
  23. #define SIGTERM        15
  24.  
  25. void (*signal(int sig, void (*func)(int)))(int);
  26.  
  27. #else    /* !__STRICT_ANSI__ || _POSIX_SOURCE */
  28.  
  29. #include <sys/signal.h>
  30.  
  31. #endif    /* !__STRICT_ANSI__ || _POSIX_SOURCE */
  32. #endif    /* _ANSI_SIGNAL_H */
  33.